package org.example.etl.entity;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.AllArgsConstructor;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;

/**
 * @Author Colonnello
 * @Gitee https://gitee.com/niuzhengchao
 * @Date 2021/3/15 9:02
 */
@Data
@AllArgsConstructor
@NoArgsConstructor
@TableName("atcduty_number")
public class AtcDuty implements Serializable {

	@TableId(value = "id",type = IdType.AUTO)
	private Integer id;

	@TableField(value = "send_time")
	private String sendTime;

	@TableField(value = "area_source")
	private String areaSource;

	@TableField(value = "atc_duty_position")
	private String atcDutyPosition;

	@TableField(value = "atc_duty_person")
	private String atcDutyPerson;

	@TableField(value = "atc_duty_sector")
	private String atcDutySector;

	@TableField(value = "count")
	private String count;

	public AtcDuty(String sendTime, String areaSource, String atcDutyPosition, String atcDutyPerson, String atcDutySector, Integer count) {
		this.sendTime = sendTime;
		this.areaSource = areaSource;
		this.atcDutyPosition = atcDutyPosition;
		this.atcDutyPerson = atcDutyPerson;
		this.atcDutySector = atcDutySector;
		this.count = String.valueOf(count);
	}
}
